@section('body')
<div class="container panel  panel-signup">
    {{ Form::open(array('class' => 'form-signin form-horizontal', 'role' => 'form')) }}
    <h2 class="form-signin-heading">用户登录</h2>
    <input name="username" value="{{ Input::old('username') }}" type="text" class="form-control" placeholder="账号" required autofocus>
    <input name="password" type="password" class="form-control" placeholder="密码" required>

    <div class="alert alert-warning alert-dismissable {{ $errors->first('attempt')?'':'hidden'; }}">
        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
        <strong>{{ $errors->first('attempt') }}</strong>
    </div>
    <button class="btn btn-lg btn-primary btn-block" type="submit">登 录</button> 
		{{ Form::close() }}
</div>
@stop

